//
//  ExclusiveTableViewCell.m
//  23-HomeworkPlanet
//
//  Created by dllo on 16/8/13.
//  Copyright © 2016年 LST. All rights reserved.
// 独家专区

#import "ExclusiveTableViewCell.h"

@implementation ExclusiveTableViewCell

- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier {
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        [self creatSubView:self.bounds];
    }
    return self;
}
- (void)creatSubView:(CGRect)sender {
    self.imageLeft = [[UIImageView alloc] initWithFrame:CGRectMake(0, 0, self.frame.size.width / 2, self.frame.size.height)];
    _imageLeft.backgroundColor = [UIColor redColor];
    [self addSubview:_imageLeft];
    self.label = [[UILabel alloc] initWithFrame:CGRectMake(self.frame.size.width / 2 + 5, 0, self.frame.size.width / 2, self.frame.size.height / 2)];
    _label.backgroundColor = [UIColor yellowColor];
    _label.font = [UIFont systemFontOfSize:22];
    _label.textAlignment = 1;
    [self.contentView addSubview:_label];
    self.labelName = [[UILabel alloc] initWithFrame:CGRectMake(self.frame.size.width / 2 + 5, self.frame.size.height / 2 - 5, self.frame.size.width / 2, self.frame.size.height / 2)];
    _labelName.backgroundColor = [UIColor yellowColor];
    [self.contentView addSubview:_labelName];
}




- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];
    
    // Configure the view for the selected state
}

@end
